import { createSlice } from "@reduxjs/toolkit";

const initialState = {
  value: 0,
};

export const homeSlice = createSlice({
  name: "home",
  initialState,
  reducers: {
    setValue: (state, { payload }) => {
      state.value = 1;
    },
  },
});

export const { setValue } = homeSlice.actions;

export default homeSlice.reducer;
